﻿using CCSFPCLoaderUI.Services;
using CCSFPCLoaderUI.Views;
using Prism.Ioc;
using Prism.Unity;
using System.ComponentModel;
using System.Windows;

namespace CCSFPCLoaderUI
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : PrismApplication
    {
        protected override Window CreateShell()
        {
            return Container.Resolve<MainWindow>();
        }
        protected override void RegisterTypes(IContainerRegistry containerRegistry)
        {
            containerRegistry.RegisterSingleton<IHIKCameraService, HIKCameraService>("LeftCamera");
            containerRegistry.RegisterSingleton<IHIKCameraService, HIKCameraService>("RightCamera");
            containerRegistry.RegisterSingleton<IPLCService, PLCService>("PLC");
        }
    }
}
